<!DOCTYPE html>
	<html lang="es">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="<?=base_url()?>css/960.css" media="screen" />
		 <link rel="stylesheet" type="text/css" href="<?=base_url()?>css/text.css" media="screen" />
		 <link rel="stylesheet" type="text/css" href="<?=base_url()?>css/reset.css" media="screen" />
	</head>
	<body>
	<ul class="style3">
		<div class="container_12">
			<div class="grid_12">
				<h2>Buscar Eventos</h2>

<?php 
echo form_open(base_url().'index.php/suscriptor/buscar');

echo "De ".'<input type="date" id="fechaIni" name="fechaIni" step="1" min="2014-01-01" max="2014-12-31">';
echo "Hasta ".'<input type="date" id="fechaFin" name="fechaFin" step="1" min="2014-01-01" max="2014-12-31">';

echo '<br><label for="Nombre Evento">Nombre Evento:</label>';
echo '<input type="search" name="busqueda">';

echo '<input id="fechaInicial" name="fechaInicial" type="hidden" />';
echo '<input id="fechaFinal" name="fechaFinal" type="hidden" />';
echo '</br></br><p><input type="submit" name="submit" class="date" value="Buscar Eventos" onclick = "getValue()"/></p>';

echo form_close();

if ($rs_eventos != "")
{
	echo '<strong>'. "Eventos Encontrados: " . mysql_num_rows($rs_eventos) . ' </strong><br> <br>';

	while ($fila = mysql_fetch_array($rs_eventos))
	{
		echo '<div class="post" style="border-width:1px; padding:10px; border-style:solid; border-color:gray; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; ">';
		echo '<h2>'.$fila['titulo_evento'].'</h2>';
		echo '<a href="'.base_url().'index.php/suscriptor/show_event/'.$fila['id_evento'].'"><img src="'.base_url().'images/'.$fila['id_tipo'].'.jpg" alt="" width="570"></a>';
		echo $fila['desc_basica']; 
		
		echo '<br> <br> <br>';
		echo '<p class="date"><a href="'.base_url().'index.php/suscriptor/show_event/'.$fila['id_evento'].'">Ver Evento</a></p>';
		echo '</div>';
		echo '</br>';
	}
}

?>

<script type="text/javascript">;
function getValue() 
{
	document.getElementById("fechaInicial").value = document.getElementById("fechaIni").value;
	document.getElementById("fechaFinal").value = document.getElementById("fechaFin").value;
}
</script>

			</div>
		</div>	
	</body>
</ul>
</html>



	
